
package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for zfzbTz.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="zfzbTzForm"
 */
public class ZfzbTzForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _tzbh = null;
   private java.lang.String _tzbs = null;
   private java.lang.String _tzmc = null;
   private java.lang.String _tznd = null;
   private java.lang.String _zffsDm = null;
   private java.lang.String _tzyszbbh = null;
   private java.lang.String _tzxmbh = null;
   private java.math.BigDecimal _tzje = null;
   private java.math.BigDecimal _tzzjje = null;
   private java.math.BigDecimal _tzsqje = null;
   private java.math.BigDecimal _yzjje = null;
   private java.math.BigDecimal _ysqje = null;
   private java.lang.String _sjdwbh = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _sjzt = null;
   private java.lang.String _cjsj = null;
   private java.lang.String _xdsj = null;
   private java.lang.String _xjzt = null;
   private java.lang.String _qrsj = null;
   private java.lang.String _sbsj = null;
   private java.lang.String _bhyy = null;
   private java.lang.String _tztype = null;
   private java.lang.String _tzstate = null;
   private java.lang.String _zjzshzt = null;
   private java.lang.String _tzbz = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;
   private java.lang.String _zt3 = null;
   private java.lang.String _zt4 = null;
   private java.lang.String _zt5 = null;
   private java.lang.String _zt6 = null;

   /**
    * Standard constructor.
    */
   public ZfzbTzForm() {
   }

   /**
    * Returns the tzbh
    *
    * @return the tzbh
    */
   public java.lang.String getTzbh() {
      return _tzbh;
   }

   /**
    * Sets the tzbh
    *
    * @param tzbh the new tzbh value
    */
   public void setTzbh(java.lang.String tzbh) {
      _tzbh = tzbh;
   }
   
   /**
    * Returns the tzbs
    *
    * @return the tzbs
    */
   public java.lang.String getTzbs() {
      return _tzbs;
   }

   /**
    * Sets the tzbs
    *
    * @param tzbs the new tzbs value
    */
   public void setTzbs(java.lang.String tzbs) {
      _tzbs = tzbs;
   }
   
   /**
    * Returns the tzmc
    *
    * @return the tzmc
    */
   public java.lang.String getTzmc() {
      return _tzmc;
   }

   /**
    * Sets the tzmc
    *
    * @param tzmc the new tzmc value
    */
   public void setTzmc(java.lang.String tzmc) {
      _tzmc = tzmc;
   }
   
   /**
    * Returns the tznd
    *
    * @return the tznd
    */
   public java.lang.String getTznd() {
      return _tznd;
   }

   /**
    * Sets the tznd
    *
    * @param tznd the new tznd value
    */
   public void setTznd(java.lang.String tznd) {
      _tznd = tznd;
   }
   
   /**
    * Returns the zffsDm
    *
    * @return the zffsDm
    */
   public java.lang.String getZffsDm() {
      return _zffsDm;
   }

   /**
    * Sets the zffsDm
    *
    * @param zffsDm the new zffsDm value
    */
   public void setZffsDm(java.lang.String zffsDm) {
      _zffsDm = zffsDm;
   }
   
   
   /**
    * Returns the tzyszbbh
    *
    * @return the tzyszbbh
    */
   public java.lang.String getTzyszbbh() {
      return _tzyszbbh;
   }

   /**
    * Sets the tzyszbbh
    *
    * @param tzyszbbh the new tzyszbbh value
    */
   public void setTzyszbbh(java.lang.String tzyszbbh) {
      _tzyszbbh = tzyszbbh;
   }
   
   /**
    * Returns the tzxmbh
    *
    * @return the tzxmbh
    */
   public java.lang.String getTzxmbh() {
      return _tzxmbh;
   }

   /**
    * Sets the tzxmbh
    *
    * @param tzxmbh the new tzxmbh value
    */
   public void setTzxmbh(java.lang.String tzxmbh) {
      _tzxmbh = tzxmbh;
   }
   
   /**
    * Returns the tzje
    *
    * @return the tzje
    */
   public java.math.BigDecimal getTzje() {
      return _tzje;
   }

   /**
    * Sets the tzje
    *
    * @param tzje the new tzje value
    */
   public void setTzje(java.math.BigDecimal tzje) {
      _tzje = tzje;
   }
   
   /**
    * Returns the tzzjje
    *
    * @return the tzzjje
    */
   public java.math.BigDecimal getTzzjje() {
      return _tzzjje;
   }

   /**
    * Sets the tzzjje
    *
    * @param tzzjje the new tzzjje value
    */
   public void setTzzjje(java.math.BigDecimal tzzjje) {
      _tzzjje = tzzjje;
   }
   
   /**
    * Returns the tzsqje
    *
    * @return the tzsqje
    */
   public java.math.BigDecimal getTzsqje() {
      return _tzsqje;
   }

   /**
    * Sets the tzsqje
    *
    * @param tzsqje the new tzsqje value
    */
   public void setTzsqje(java.math.BigDecimal tzsqje) {
      _tzsqje = tzsqje;
   }
   
   /**
    * Returns the yzjje
    *
    * @return the yzjje
    */
   public java.math.BigDecimal getYzjje() {
      return _yzjje;
   }

   /**
    * Sets the yzjje
    *
    * @param yzjje the new yzjje value
    */
   public void setYzjje(java.math.BigDecimal yzjje) {
      _yzjje = yzjje;
   }
   
   /**
    * Returns the ysqje
    *
    * @return the ysqje
    */
   public java.math.BigDecimal getYsqje() {
      return _ysqje;
   }

   /**
    * Sets the ysqje
    *
    * @param ysqje the new ysqje value
    */
   public void setYsqje(java.math.BigDecimal ysqje) {
      _ysqje = ysqje;
   }
   
   /**
    * Returns the sjdwbh
    *
    * @return the sjdwbh
    */
   public java.lang.String getSjdwbh() {
      return _sjdwbh;
   }

   /**
    * Sets the sjdwbh
    *
    * @param sjdwbh the new sjdwbh value
    */
   public void setSjdwbh(java.lang.String sjdwbh) {
      _sjdwbh = sjdwbh;
   }
   
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the sjzt
    *
    * @return the sjzt
    */
   public java.lang.String getSjzt() {
      return _sjzt;
   }

   /**
    * Sets the sjzt
    *
    * @param sjzt the new sjzt value
    */
   public void setSjzt(java.lang.String sjzt) {
      _sjzt = sjzt;
   }
   /**
    * Returns the cjsj
    *
    * @return the cjsj
    */
   public java.lang.String getCjsj() {
      return _cjsj;
   }

   /**
    * Sets the cjsj
    *
    * @param cjsj the new cjsj value
    */
   public void setCjsj(java.lang.String cjsj) {
      _cjsj = cjsj;
   }
   /**
    * Returns the xdsj
    *
    * @return the xdsj
    */
   public java.lang.String getXdsj() {
      return _xdsj;
   }

   /**
    * Sets the xdsj
    *
    * @param xdsj the new xdsj value
    */
   public void setXdsj(java.lang.String xdsj) {
      _xdsj = xdsj;
   }
   /**
    * Returns the xjzt
    *
    * @return the xjzt
    */
   public java.lang.String getXjzt() {
      return _xjzt;
   }

   /**
    * Sets the xjzt
    *
    * @param xjzt the new xjzt value
    */
   public void setXjzt(java.lang.String xjzt) {
      _xjzt = xjzt;
   }
   /**
    * Returns the qrsj
    *
    * @return the qrsj
    */
   public java.lang.String getQrsj() {
      return _qrsj;
   }

   /**
    * Sets the qrsj
    *
    * @param qrsj the new qrsj value
    */
   public void setQrsj(java.lang.String qrsj) {
      _qrsj = qrsj;
   }
   /**
    * Returns the sbsj
    *
    * @return the sbsj
    */
   public java.lang.String getSbsj() {
      return _sbsj;
   }

   /**
    * Sets the sbsj
    *
    * @param sbsj the new sbsj value
    */
   public void setSbsj(java.lang.String sbsj) {
      _sbsj = sbsj;
   }
   
   public java.lang.String getBhyy() {
      return _bhyy;
   }

   /**
    * Sets the bhyy
    *
    * @param bhyy the new bhyy value
    */
   public void setBhyy(java.lang.String bhyy) {
      _bhyy = bhyy;
   }
   
   /**
    * Returns the tztype
    *
    * @return the tztype
    */
   public java.lang.String getTztype() {
      return _tztype;
   }

   /**
    * Sets the tztype
    *
    * @param tztype the new tztype value
    */
   public void setTztype(java.lang.String tztype) {
      _tztype = tztype;
   }
   
   /**
    * Returns the tzstate
    *
    * @return the tzstate
    */
   public java.lang.String getTzstate() {
      return _tzstate;
   }

   /**
    * Sets the tzstate
    *
    * @param tzstate the new tzstate value
    */
   public void setTzstate(java.lang.String tzstate) {
      _tzstate = tzstate;
   }
   
   /**
    * Returns the zjzshzt
    *
    * @return the zjzshzt
    */
   public java.lang.String getZjzshzt() {
      return _zjzshzt;
   }

   /**
    * Sets the zjzshzt
    *
    * @param zjzshzt the new zjzshzt value
    */
   public void setZjzshzt(java.lang.String zjzshzt) {
      _zjzshzt = zjzshzt;
   }
   
   /**
    * Returns the tzbz
    *
    * @return the tzbz
    */
   public java.lang.String getTzbz() {
      return _tzbz;
   }

   /**
    * Sets the tzbz
    *
    * @param tzbz the new tzbz value
    */
   public void setTzbz(java.lang.String tzbz) {
      _tzbz = tzbz;
   }
   /**
    * Returns the bhyy
    *
    * @return the bhyy
    */
   
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }
   /**
    * Returns the zt3
    *
    * @return the zt3
    */
   public java.lang.String getZt3() {
      return _zt3;
   }

   /**
    * Sets the zt3
    *
    * @param zt3 the new zt3 value
    */
   public void setZt3(java.lang.String zt3) {
      _zt3 = zt3;
   }
   /**
    * Returns the zt4
    *
    * @return the zt4
    */
   public java.lang.String getZt4() {
      return _zt4;
   }

   /**
    * Sets the zt4
    *
    * @param zt4 the new zt4 value
    */
   public void setZt4(java.lang.String zt4) {
      _zt4 = zt4;
   }
   /**
    * Returns the zt5
    *
    * @return the zt5
    */
   public java.lang.String getZt5() {
      return _zt5;
   }

   /**
    * Sets the zt5
    *
    * @param zt5 the new zt5 value
    */
   public void setZt5(java.lang.String zt5) {
      _zt5 = zt5;
   }
   /**
    * Returns the zt6
    *
    * @return the zt6
    */
   public java.lang.String getZt6() {
      return _zt6;
   }

   /**
    * Sets the zt6
    *
    * @param zt6 the new zt6 value
    */
   public void setZt6(java.lang.String zt6) {
      _zt6 = zt6;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getTzbh() == null) {
         errors.add("tzbh", new ActionError("error.tzbh.required"));
      }
      if(getTznd() == null) {
         errors.add("tznd", new ActionError("error.tznd.required"));
      }
      if(getDwbh() == null) {
         errors.add("dwbh", new ActionError("error.dwbh.required"));
      }
      // TODO test format/data
      return errors;
   }
}
